package com.niit.onlinemusicserver34.controller;

import com.niit.onlinemusicserver34.common.R;
import com.niit.onlinemusicserver34.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/collection")
public class CollectController {
    @Autowired
    private CollectService collectService;
    /**
     * 返回的指定用户 ID 收藏的列表
     */

    @RequestMapping("/detail")
    public R collectionOfUser(Integer id) {
        return collectService.collectionOfUser(id);
    }
}
